package com.kinyx.framework.image;

import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;

import org.junit.Test;

import com.kinyx.framework.file.KPathUtils;

public class KImageDrawer_Tester_ {

	final BufferedImage image1 = KImageUtils.readBufferedImage(new File(KPathUtils.target() + "/test-classes/file/category/test1.jpg"));
	final BufferedImage image2 = KImageUtils.readBufferedImage(new File(KPathUtils.target() + "/test-classes/file/category/test2.jpg"));
	final BufferedImage image3 = KImageUtils.readBufferedImage(new File(KPathUtils.target() + "/test-classes/file/category/test3.jpg"));

	@Test
	public void appendRow() {
		KImageUtils.write(KPathUtils.target() + "/test-classes/file/category/test1_appendRow_32_16.jpg", KImageDrawer.appendRow(this.image1, Color.RED, 32, 16));
		KImageUtils.write(KPathUtils.target() + "/test-classes/file/category/test1_appendRow_16_32.jpg", KImageDrawer.appendRow(this.image1, Color.RED, 16, 32));
	}

}
